package com.vanke.vms.management.service.serviceImpl;

import com.vanke.vms.common.domain.User;
import com.vanke.vms.management.dao.RegisterDao;
import com.vanke.vms.management.service.RegisterService;

public class RegisterServiceImpl implements RegisterService {

	private RegisterDao registerDao;

	public RegisterDao getRegisterDao() {
		return registerDao;
	}

	public void setRegisterDao(RegisterDao registerDao) {
		this.registerDao = registerDao;
	}

	@Override
	public void registeUser(User user) {
		registerDao.registeUser(user);
	}

	@Override
	public boolean isDublipcated(String username) {
		if (registerDao.isDublipcated(username))
			return true;
		return false;
	}

	@Override
	public void updateUser(User user) {
		registerDao.updateUser(user);
	}
}
